/*
 * @copyright fxsen <br/>
 * @date 2022/3/31 22:46 <br/>
 * @email <a href="mailto:fxsen@foxmail.com">
 * @author fxsen
 */
package com.fxsen.commons.core.base.common;

import java.io.Serializable;

/**
 * @author fxsen
 * @date 2022/3/31 22:46
 * @email <a href="mailto:fxsen@foxmail.com">
 */
public class OnlineUser implements Serializable {
    private static final long serialVersionUID = -742542283451363156L;
    private String token;
    private String id;
    private String username;
    private String loginName;
    private String departmentId;
    private boolean isAdmin = false;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }
    public OnlineUser(){
        super();
    }
    public OnlineUser(String token, String id, String username, String loginName) {
        this.token = token;
        this.id = id;
        this.username = username;
        this.loginName = loginName;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public boolean isAdmin() {
        return isAdmin;
    }

    public void setAdmin(boolean admin) {
        isAdmin = admin;
    }
}
